package com.xrui.adc.hbase.hashing;


import com.xrui.hbase.hashing.GenericHasher;
import com.xrui.rts.utillity.HashString;
import org.apache.hadoop.hbase.util.Bytes;

public class BinaryRowKeyHasher extends GenericHasher {
    public static final String PROVIDER_NAME = BinaryRowKeyHasher.class.getName();

    @Override
    public String getHashString(String string) {
        return Bytes.toString(getHashBytes(string));
    }

    @Override
    public byte[] getHashBytes(String string) {
        return HashString.getHashBytes(string);
    }

    @Override
    public String getName() {
        return PROVIDER_NAME;
    }
}
